package com.westos.userauth.dao;

import com.westos.userauth.domain.SecurityPermission;
import com.westos.userauth.domain.UserLogin;
import com.westos.userauth.domain.UserLoginSecurityGroup;

import java.util.List;

public interface UserLoginSecurityGroupDao {
    /**
     * 在有效时间内根据用户名查找用户的权限组
     */
    List<UserLoginSecurityGroup> queryGroupIdByLoginId(String loginId);

    /**
     * 根据登录用户查找用户权限
     */
    List<SecurityPermission> queryByUserLogin(UserLogin userLogin);
    /**
     * 根据UserLoginId  GroupId  FromDate更改thruDate
     */
    int updateByUserLoginIdAndGroupIdAndFromDate(UserLoginSecurityGroup userLoginSecurityGroup);
}
